local ADMINS = {"[BF]JackFisher"}
local MODERATORS = {"[BF]Spys"}
local SCRIPTER = {"Krischkros", "Haushund"}

addEventHandler("onPlayerJoin", getRootElement(), function()
	for index, playername in ipairs(ADMINS) do
		local INGAMEPLAYERNAME = getPlayerName(source)
		if INGAMEPLAYERNAME == playername then
			outputChatBox("* [ADMIN]: "..playername.." ist dem Server beigetreten!")
		end
	end
	for index, playername in ipairs(MODERATORS) do
		local INGAMEPLAYERNAME = getPlayerName(source)
		if INGAMEPLAYERNAME == playername then
			outputChatBox("* [MODERATOR]: "..playername.." ist dem Server beigetreten!")
		end
	end
	for index, playername in ipairs(SCRIPTER) do
		local INGAMEPLAYERNAME = getPlayerName(source)
		if INGAMEPLAYERNAME == playername then
			outputChatBox("* [SCRIPTER]: "..playername.." ist dem Server beigetreten!")
		end
	end
end)